#include "cxiprogressbar_p.h"
CxiProgressBarPrivate::CxiProgressBarPrivate(CxiProgressBar* p)
	: QObject(p),
	  q_ptr(p),
	  m_isMarqueeMode(false)
{
}
CxiProgressBarPrivate::~CxiProgressBarPrivate() = default;
void CxiProgressBarPrivate::init()
{
	Q_Q(CxiProgressBar);
	q->setValue(0);
}
void CxiProgressBarPrivate::SetMarqueeMode(bool isMarqueeMode)
{
	Q_Q(CxiProgressBar);
	m_isMarqueeMode = isMarqueeMode;
	if (m_isMarqueeMode)
	{
		q->setMaximum(0);
		q->setMinimum(0);
		q->setTextVisible(false);
	}
}
